<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/my.js" type="text/javascript">
			//不能在这里写脚本			
		</script>
	</head>
	<body>
		<button type="button" onclick="alert(1)">按钮</button>
		<a href="javascript:console.log(1);">输出1</a>
		
		<script type="text/javascript">
			console.log(2);
			
			document.write("<h1>一级标题</h1>")
			document.write("<style type='text/css'>h1{color: red;}</style>")
		</script>
		
	</body>
</html>
